/**
 * Created by rh on 2017/8/15.
 */
//图片或视频比例通屏方法调用
function ban_s(obj) {
    var pic_t = 750 / 370;
    var imgWidth = $(window).width();
    var imgHeight = imgWidth / pic_t;
    $(obj).css({"width": imgWidth, "height": imgHeight});
}

/*关闭底部*/
function colseTan(){
    $(".pdDownLoad").hide();
}

//点击播放
function videoPlay(id) {
    var $video = document.getElementById(id);
    $(".iconFont").hide(100);
    $video.play();
}

/*监听视频状态*/
function getVideo() {
    var myVideo = document.getElementById("video");
    myVideo.addEventListener('play', function () {
        $('.iconFont').hide(100);
    });
    myVideo.addEventListener('pause', function () {
        $('.iconFont').show(100);
    });
}
